<?php
/**
 * Created by PhpStorm.
 * User: Edward
 * Date: 2019/6/5
 * Time: 11:15
 */

namespace app\Validate;


class ProductValidate extends BaseValidate {
    protected $rule = [
        'uid' => 'require|isPositiveInteger',
        'product_name' => 'require|min:1|max:20',
        'brand_name' => 'require|min:1|max:20',
        'international_code' => 'require',
        'my_code' => 'require',
    ];
    protected $message = [
        'uid' => '商家id不能为空',
        'product_name' => '商家名称必填',
        'brand_name' => '品牌名称必填',
        'international_code' => '国际编码必填',
        'my_code' => '内部码必填',
    ];
}

